//
//  MLBleInfoViewController.m
//  RuZe
//
//  Created by 程杰 on 2023/5/31.
//

#import "MLBleInfoViewController.h"
#import "MLBleControlViewController.h"
#import "MLApViewController.h"

@interface MLBleInfoViewController ()

@property (weak, nonatomic) IBOutlet UITextView *tv;

@property (weak, nonatomic) IBOutlet UILabel *bleName;
@property (weak, nonatomic) IBOutlet UILabel *bleMac;

@property (weak, nonatomic) IBOutlet UILabel *bleNumber;


@end

@implementation MLBleInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.tv.text = self.bleModel.manufacture;
    self.bleName.text = self.bleModel.name;
    self.bleMac.text = self.bleModel.mac;
    self.bleNumber.text = [NSString stringWithFormat:@"%@",self.bleModel.RSSI];
    
}
// 控制
- (IBAction)control:(UIButton *)sender {
    MLBleControlViewController *vc = [MLBleControlViewController new];
    vc.bleModel = self.bleModel;
    [self.navigationController pushViewController:vc animated:YES];
    
}

// 配网
- (IBAction)wifiConnect:(UIButton *)sender {
    MLApViewController *vc = [MLApViewController new];
    vc.bleModel = self.bleModel;
    [self.navigationController pushViewController:vc animated:YES];
}



@end
